package com.chenfubing.ps.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chenfubing.ps.entity.Charges;
import com.chenfubing.ps.mapper.ChargesMapper;
import com.chenfubing.ps.service.IChargesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenfubing
 * @since 2020-05-05
 */
@Service
public class ChargesServiceImpl extends ServiceImpl<ChargesMapper, Charges> implements IChargesService {

    @Override
    public List<Charges> getChargesList() {
        return baseMapper.selectList(new QueryWrapper<Charges>());
    }

    @Override
    public void updateCharges(Charges charges) {
        baseMapper.updateById(charges);
    }
}
